package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Purchase;
import com.woniu.supermarket.entity.PurchaseCheck;
import com.woniu.supermarket.entity.PurchaseDetail;
import com.woniu.supermarket.vo.PurchaseDetailVo;
import com.woniu.supermarket.vo.PurchaseVo;
import com.woniu.supermarket.vo.SearchPurchaseVo;
import io.swagger.models.auth.In;

import java.util.List;

public interface IPurchaseService {
    int addPurchase(Purchase purchase);

    int modifyPurchase(PurchaseVo purchaseVo);

    int removePurchase(Integer id);

    int removeBatchIds(int[] ids);

    PageInfo<PurchaseVo> findByCons(Integer now, Integer size, SearchPurchaseVo searchPurchaseVo);

    int addPurchaseOrder(PurchaseVo purchaseVo);

    List<PurchaseVo> findAll();

    Purchase findPurchaseByPurchaseNumber(String purchaseNumber);

    PurchaseVo findPurchaseAndDetailByPurchaseNumber(String purchaseNumber);

    int auditPurchaseCheck(PurchaseCheck purchaseCheck);

    PageInfo<PurchaseVo> findByCons2(Integer now, Integer size);
}
